import top.scauwlt.serialize.Serializer;

import java.nio.charset.StandardCharsets;

/**
 * @Author wmm
 * @Date 2022/7/25 0:00
 */
public class TestSerializer implements Serializer {
    @Override
    public byte[] serialize(Object obj) {
        return "test".getBytes(StandardCharsets.UTF_8);
    }

    @Override
    public <T> T deserialize(byte[] bytes, Class<T> clazz) {
        return (T) "test";
    }
}
